<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/page/common/taglibs.jsp" %>
<html>
  <head>
    <title>Title</title>
  </head>
  <body>
  <form id="fm">
  考生姓名：<input type="text" name="exaName">
  <input type="button" value="添加" onclick="add()">
  </form>
  </body>
<script>
    function add() {
        var index = layer.load();
        $.post("${ctx}/exp/add",
            $("#fm").serialize(),
            function(result) {
            layer.close(index);
            if (result.code != '200') {
                layer.alert(result.msg, {
                    icon : 5
                });
                return;
            }
            parent.location.href = "${ctx}/s/";

        });
    }

</script>
</html>
